<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>

<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<link rel="stylesheet" type="text/css" href="static/easyui/themes/bootstrap/easyui.css">
<link rel="stylesheet" type="text/css" href="static/easyui/themes/icon.css">
<link rel="stylesheet" href="static/metisMenu/metisMenu_custom.css" />
<link rel="stylesheet" href="static/css/style.css" />
<script src="static/jquery/jquery-1.12.4.js"></script>
<script src="static/easyui/jquery.easyui.min.js"></script>
<script src="static/easyui/locale/easyui-lang-zh_CN.js"></script>
<script src="static/jqueryValidate/jquery.validate.min.js"></script>
<script src="static/jqueryValidate/additional-methods.min.js"></script>
<script src="static/jqueryValidate/localization/messages_zh.min.js"></script>
<script src="static/moment/moment.js"></script>
<script src="static/moment/locale/zh-cn.js"></script>
<script src="static/js/base-loading.js"></script>
<title>待审核项目列表</title>
</head>

<body>
	<div class="content-container" data-options="region:'center'">
		<div class="panel-header">
			<div class="panel-title">待审核项目列表</div>
		</div>
		<div id="pro_tb">
			<div></div>
		</div>
		<table id="pro_table" class="easyui-datagrid" style="height: 100%">
		</table>
	</div>

</body>
<script>
	$(document).ready(function() {
		$('#pro_table').datagrid({
			rownumbers : true,
			singleSelect : true,
			pagination : true,
			fitColumns : false,
			border : false,
			striped : true,
			toolbar : '#pro_tb',
			url : "reviewlist.do",
			method : 'get',
			columns : [ [ {
				field : 'category',
				title : '审核类别',
				width : '',
			},{
				field : 'projectname',
				title : '项目',
				width : '',
			},{
				field : 'handle',
				title : '操作',
				width : '',
				formatter : function(value,row,index) {
					return '<a class="btn-blue" href="#" onclick="addTab(' + index + ',' + row.activityid + ')">进入审核页面</a>';
				}
			} ] ]
		});
	});
	function addTab(index,activityid) {
		var item = $("#pro_table").datagrid('getRows')[index];
		var title = '审核-' + item.projectname + "-" + item.category;
		window.parent.window.addTab(title, "unreviewed/" + item.type + ".do?id=" + activityid, "unreviewed_" + item.type);
	}
	function refreshProTable() {
		$('#pro_table').datagrid("reload");
	}
</script>

</html>